home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / thindi.zip / THISRC.ZIP / MAKEFILE.MSC next >
Text File  |  1994-02-14  |  3KB  |  96 lines

  1. #==========================================================
  2. # Makefile for Win EXEs under Microsoft C 6.0
  3. # Copyright (c) 1993 Douglas Boling
  4. #==========================================================
  5. #----------------------------------------------------------
  6. # Target filename
  7. #----------------------------------------------------------
  8. NAME = thindisk
  9. NAME1 = statbar
  10.  
  11. #----------------------------------------------------------
  12. # Define DEBUG = 1 to add debug info to EXE
  13. #----------------------------------------------------------
  14. DEBUG = 0
  15.  
  16. #----------------------------------------------------------
  17. # Define MYWIN31 = 1 for Windows 3.1 apps
  18. #----------------------------------------------------------
  19. MYWIN31 = 0
  20.  
  21. #----------------------------------------------------------
  22. # C compiler switches
  23. #
  24. # -c    Compile, no link
  25. # -Gsw     No Stack check, Compile for Windows
  26. # -G2   Use 286 instructions (Win 3.1 only)
  27. # -Ow   Optimize. Assume no aliases
  28. # -W3   Print warnings to level 3
  29. # -Zp   Pack Structures or...
  30. # -Zpi    If Debug info needed
  31. # -Od     Disable Optimization
  32. #----------------------------------------------------------
  33. !if $(DEBUG)
  34. CSWITCH = -c -Gsw -Ow -W3 -Zpi -Od
  35. !else
  36. CSWITCH = -c -Gsw -Ow -W3 -Zp 
  37. !endif
  38.  
  39. !if $(MYWIN31)
  40. CSWITCH = $(CSWITCH) -G2 
  41. !else
  42. CSWITCH = $(CSWITCH) -D WINVER=0x0300
  43. !endif
  44.  
  45. #----------------------------------------------------------
  46. # Link Switches
  47. #
  48. # /Align:16  Align segments on 16 byte boundries 
  49. # /CO        If debug info needed
  50. #----------------------------------------------------------
  51. !if $(DEBUG)
  52. LSWITCH = /CO /align:16
  53. !else
  54. LSWITCH = /align:16
  55. !endif
  56.  
  57. #----------------------------------------------------------
  58. # Lib files
  59. #
  60. # /nod     No defaults
  61. # slibcew  Small model lib for Windows
  62. # libw     Windows API lib
  63. # commdlg  Windows Common Dialog Box lib
  64. #----------------------------------------------------------
  65. LIBS = /nod slibcew libw commdlg
  66.  
  67. #----------------------------------------------------------
  68. # Resource Compiler switches
  69. # 30   Require at least Win 3.0
  70. # 31   Require at least Win 3.1
  71. #----------------------------------------------------------
  72. !if $(MYWIN31)
  73. RCSWITCH = -31
  74. !else
  75. RCSWITCH = -30
  76. !endif
  77.  
  78. #----------------------------------------------------------
  79. # Make EXE
  80. #----------------------------------------------------------
  81. $(NAME).exe : $(NAME).obj $(NAME1).obj $(NAME).def $(NAME).res
  82.     link $(LSWITCH) $(NAME) $(NAME1), $(NAME).exe, NUL, $(LIBS), $(NAME)
  83.     rc $(RCSWITCH) $(NAME).res 
  84.  
  85. $(NAME).obj : $(NAME).c $(NAME).h
  86.     cl $(CSWITCH) $(NAME).c
  87.  
  88. $(NAME1).obj : $(NAME1).c $(NAME1).h
  89.     cl $(CSWITCH) $(NAME1).c
  90.  
  91. $(NAME).res : $(NAME).rc $(NAME).h $(NAME).ico
  92.     rc -r $(NAME).rc
  93.  
  94.  
  95.  
  96.